/**
 * @date 2006-2-17 11:22:23
 *
 */
package org.nanhill.moo.domain;

/**
 * Cost of Message.
 * <ul>
 * <li>General</li>
 * <li>Free</li>
 * <li>Share</li>
 * <li>Borrow</li>
 * <li>Exchange</li>
 * <li>Buy</li>
 * <li>Rent</li>
 * </ul>
 * 
 * @author alin [xalinx at gmail dot com]
 */
public class Cost {
	public static final int ALL = 0;

	public static final boolean isAll(long cid) {
		return ALL == cid;
	}

	/**
	 * Cost id.
	 */
	private long id;

	/**
	 * Favor count of this cost.
	 */
	private int count;

	/**
	 * Cost name.
	 */
	private String name;

	/**
	 * Cost english name.
	 */
	private String enName;

	public long getId() {
		return id;
	}

	void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	void setName(String name) {
		this.name = name;
	}

	public String getEnName() {
		return enName;
	}

	void setEnName(String enName) {
		this.enName = enName;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	Cost() {
	}

	public Cost(long id, int count, String name, String enName) {
		this.id = id;
		this.count = count;
		this.name = name;
		this.enName = enName;
	}

	public Cost(String name, String enName) {
		this.name = name;
		this.enName = enName;
	}
	
	
	public void appendFavorCount(int more) {
		this.count += more;
	}
	
	

}
